<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsBargradeTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('bargrade', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->integer('grade')->nullable()->default(0)->comment('等级');
			$table->integer('exp')->nullable()->default(0)->comment('经验值');
			$table->char('appellation', 16)->nullable()->comment('等级称谓');
			$table->string('grade_img')->nullable()->comment('等级图标');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('bargrade');
	}

}
